From: Florian Müllner Date: Sat, 7 Feb 2015 00:41:11 +0000 (+0100) Subject: dateMenu: Remove link to Date & Time Settings X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~1013^2^2~1746 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=de27e4e1b2d5187b5170a176a366fcb5b22d16b2;p=gnome-shell.git dateMenu: Remove link to Date & Time Settings Menu items are on their way out of the calendar drop down, so let's start with the easy one. This one is removed without replacement, but then the Date & Time panel should be a one-time stop for most users anyway, so not having a direct shortcut should not be much of a problem. It is also the last remaining Settings item outside the system menu ... https://bugzilla.gnome.org/show_bug.cgi?id=744817 --- diff --git a/js/ui/dateMenu.js b/js/ui/dateMenu.js index 7ffc4e87c..a3c68bb6e 100644 --- a/js/ui/dateMenu.js +++ b/js/ui/dateMenu.js @@ -144,13 +144,6 @@ const DateMenuButton = new Lang.Class({ Shell.AppSystem.get_default().connect('installed-changed', Lang.bind(this, this._appInstalledChanged)); - item = this.menu.addSettingsAction(_("Date & Time Settings"), 'gnome-datetime-panel.desktop'); - if (item) { - item.actor.show_on_set_parent = false; - item.actor.reparent(vbox); - this._dateAndTimeSeparator = separator; - } - // Done with hbox for calendar and event list @@ -202,10 +195,6 @@ const DateMenuButton = new Lang.Class({ } this._setEventSource(eventSource); this._updateEventsVisibility(); - - // This needs to be handled manually, as the code to - // autohide separators doesn't work across the vbox - this._dateAndTimeSeparator.actor.visible = Main.sessionMode.allowSettings; }, _getCalendarApp: function() {